<?php

/**
 * 推荐位
 */
Route::get('entity/column/recommends', ['as'=> 'entity.column.recommends.index', 'uses' => 'Entity\Column\RecommendController@index']);
Route::post('entity/column/recommends', ['as'=> 'entity.column.recommends.store', 'uses' => 'Entity\Column\RecommendController@store']);
Route::get('entity/column/recommends/create', ['as'=> 'entity.column.recommends.create', 'uses' => 'Entity\Column\RecommendController@create']);
Route::put('entity/column/recommends/{recommends}', ['as'=> 'entity.column.recommends.update', 'uses' => 'Entity\Column\RecommendController@update']);
Route::patch('entity/column/recommends/{recommends}', ['as'=> 'entity.column.recommends.update', 'uses' => 'Entity\Column\RecommendController@update']);
Route::delete('entity/column/recommends/{recommends}', ['as'=> 'entity.column.recommends.destroy', 'uses' => 'Entity\Column\RecommendController@destroy']);
Route::get('entity/column/recommends/{recommends}', ['as'=> 'entity.column.recommends.show', 'uses' => 'Entity\Column\RecommendController@show']);
Route::get('entity/column/recommends/{recommends}/edit', ['as'=> 'entity.column.recommends.edit', 'uses' => 'Entity\Column\RecommendController@edit']);

/**
 * 推荐位-媒资
 */
// 编辑媒资界面
Route::get('entity/column/recommends/{recommends}/edit/asset', ['as'=> 'entity.column.recommends.edit_asset', 'uses' => 'Entity\Column\RecommendController@editAsset']);
// 媒资数据
Route::post('entity/column/recommends/asset/data', ['as'=> 'entity.column.recommends.data', 'uses' => 'Entity\Column\RecommendController@data']);
// 已选的媒资数据
Route::post('entity/column/recommends/asset/selected', ['as'=> 'entity.column.recommends.selected', 'uses' => 'Entity\Column\RecommendController@selected']);
// 添加单个媒资|添加多个媒资
Route::post('entity/column/recommends/asset/add', ['as'=> 'entity.column.recommends.add_asset', 'uses' => 'Entity\Column\RecommendController@addVasseti']);
// 删除单个媒资|删除多个媒资
Route::post('entity/column/recommends/asset/delete', ['as'=> 'entity.column.recommends.deltete_asset', 'uses' => 'Entity\Column\RecommendController@deleteVasseti']);

/**
 * 推荐位上线, 下线, 发布
 */
// 推荐位全部上线
Route::get('entity/column/recommends/all_up/view', [
    'as'=> 'entity.column.recommends.all_up', 
    'uses' => 'Entity\Column\RecommendController@allUp'
]);
// 推荐位全部下线
Route::get('entity/column/recommends/all_down/view', [
    'as'=> 'entity.column.recommends.all_down', 
    'uses' => 'Entity\Column\RecommendController@allDown'
]);
// 推荐位上线发布
Route::get('entity/column/recommends/publish/view', [
    'as'=> 'entity.column.recommends.publish', 
    'uses' => 'Entity\Column\RecommendController@publish'
]);
// 推荐位单个上线发布
Route::post('entity/column/recommends/publish_one/view', [
    'as'=> 'entity.column.recommends.publish_one', 
    'uses' => 'Entity\Column\RecommendController@batchModerate'
]);
// 推荐位下线发布
Route::get('entity/column/recommends/publish_down/view', [
    'as'=> 'entity.column.recommends.publish_down', 
    'uses' => 'Entity\Column\RecommendController@publishDown'
]);
// 上线
Route::post('entity/column/recommends/up/view', [
    'as'=> 'entity.column.recommends.up', 
    'uses' => 'Entity\Column\RecommendController@batchModerate'
]);
// 下线
Route::post('entity/column/recommends/down/view', [
    'as'=> 'entity.column.recommends.down', 
    'uses' => 'Entity\Column\RecommendController@batchModerate'
]);
// 查询进度
Route::get('entity/column/recommends/progress/view', [
    'as'=> 'entity.column.recommends.progress', 
    'uses' => 'Entity\Column\RecommendController@queryProgress'
]);